how to use logarithm to solve exponential equations